<?php
@session_start();
if (!isset($_SESSION['user'])) {
	header('Location: login.php?redirect=' . urlencode($_SERVER['REQUEST_URI']));
}